package com.common.domain.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value ="sys_leave")
public class Leave {
    @TableId
    private Long id;

    private String rejectReason;

    /**
    * 医生id
    */
    private Long doctorId;

    /**
    * 请假开始时间
    */
    private Date startTime;

    /**
    * 请假结束时间
    */
    private Date endTime;

    @TableField(fill = FieldFill.INSERT)
    private Long createBy;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateBy;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    @TableField(fill = FieldFill.INSERT)
    private Integer delFlag;

    /**
    * 请假状态,0--未审核,1--审核通过,2--拒绝
    */
    private String status;

    /**
    * 请假原因
    */
    private String reason;
}
